package com.RedRiver.hospitalsystem.finance_service.infra.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 龙世超
 * @since 2022-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_invoice")
public class Invoice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 发票编号
     */
    @TableId(value = "invoice_id", type = IdType.AUTO)
    private Integer invoiceId;

    /**
     * 创建日期
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 纳税人识别号
     */
    private String invoiceTaxpayer;

    /**
     * 发票地址
     */
    private String invoiceAddress;

    /**
     * 账单id
     */
    private Integer billId;

    /**
     * 收票人
     */
    private String patientName;

    /**
     * 收票人电话
     */
    private String patientTel;

    /**
     * 开户银行
     */
    private String invoiceBank;

    /**
     * 是否可以再次开具发票 0可以 1不行
     */
    private Integer invoiceState;

    /**
     * 发票金额
     */
    private BigDecimal invoiceTotal;
    /**
     * 逻辑删除
     */
    @TableField("isDeleted")
    @TableLogic
    private Integer isDeleted;


}
